sendAPDU

abstract fun sendAPDU(apdu: Array<Byte>, bufferSize: Int, closeAfterResponse: Boolean): ApduResponse

Sends an APDU command to the card and returns the response.

Return

The response of the card to the APDU command.

Parameters

apdu

The APDU command to be sent to the card.

bufferSize

Expected bufferSize of the response, use 255 per default

closeAfterResponse

A flag indicating whether to close the card reader after receiving the response.